package com.wq.gof.designer.state;

/**
 * @Author: wangqiang20995
 * @Date:2019/1/28
 * @Description:
 * @Resource:
 */
public class StateModelDemo {

    public static void main(String args[]){
        UserRule userRule = new UserRule();
        AbstractLevel abstractLevel = new LowLevel(userRule);

        UserVo userVo = new UserVo("Paul",3);

        abstractLevel.showLevelPriority(userVo).forEach((line) -> System.out.println(line));
    }
}
